<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib prefix="app" uri="/WEB-INF/tlds/app.tld" %>

<cache:cache key="/category2.jsp?categoryId=${param['categoryId']}">
<c:set var="categoryItems" value="${app:getItemsForCategory(param['categoryId'])}" scope="page"/>
<tr>
    <td valign="top">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td valign="top">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <!--DWLayoutTable-->
                        <tr>
                            <td colspan=2 valign="top"
                                background="${pageContext.request.contextPath}/images/index_03.gif"
                                class="demuc_td demuc_a">${app:getCategory(param['categoryId']).title}
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <c:forEach var="item" begin="0" end="14" items="${categoryItems}" varStatus="status">
                <tr>
                    <td valign="top">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="titlebaovn"><a class="tuade_tin" href="content.jsp?contentId=${item.id}"><b><c:out
                                        value="${item.title}"/></b> - ${item.rssSource.rssProvider.name}</a></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <c:if test="${item.imageLink != null}">
                                    <td valign="top">
                                        <a href="content.jsp?contentId=${item.id}"><div align="center"
                                                                                        class="thumbnail_image">${item.imageLink}</div>
                                        </a>
                                    </td>
                                </c:if>
                                <td valign="top" class="short_desc">${item.descriptionValue}<a
                                        href="content.jsp?contentId=${item.id}"><IMG align="right"
                                                                                     src="images/readMore.gif"
                                                                                     border=0/></a></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </c:forEach>

            <tr>
                <td valign="top">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <!--DWLayoutTable-->
                        <tr>
                            <td width="389" height="23" valign="top" class="tuade_tin">C&aacute;c tin kh&aacute;c<img
                                    src="images/index_11.gif" width="275" height="3" alt="1"/></td>
                        </tr>
                        <tr>
                            <td align="left" valign="top"><ul>
                                <c:forEach var="item" begin="15" end="29" items="${categoryItems}" varStatus="status">
                                <li><a class="changeColor changeColorHover" href="content.jsp?contentId=${item.id}"><c:out value="${item.title}"/><span class="ShowDate">&nbsp;(06/08)</span></a></li>
                                </c:forEach>
                            </ul>
                            </td>
                        </tr>
                        <tr>
                            <td height="15"></td>
                        </tr>
                    </table>
                </td>
            </tr>


        </table>
    </td>
</tr>
</cache:cache>